How to find Infimum and supremum of a sequence